<?php	/* gmslOpenSource 2008 */
/*
----------------------------------------------------------------------------------------
	Project name:		gmslappcore
	Section:		errors
----------------------------------------------------------------------------------------
	Script name:		secure_area.php
	Script location:	./gmslappcore/errors/
	Script version:		1.0
----------------------------------------------------------------------------------------
	Script info:		This page will appear if the user tries to access an
				area which is secure and they do not have sufficient
				permissions.
	Script dependencies:
 				~None.
----------------------------------------------------------------------------------------
	This script is part of the gmslappcore system which is released
	under the GNU licese.
	Copyright: (c) 2008 Andrew Cornford (groupmsl.co.uk)
	Email: projects@groupmsl.co.uk
	Website: www.groupmsl.co.uk?section=cms&page=view&t=gmslappcore&f=groupmsl Open Source/gmslappcore
----------------------------------------------------------------------------------------
	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
----------------------------------------------------------------------------------------
*/
// PHP early scripts go here.
$page['title']="Error";
$page['info']="We're sorry but you do not have the required privaliges to access this page.";

// Calling the skin head.
eval($page['skin_head']);

// Head HTML goes here.

// Calling the skin header.
eval($page['skin_header']);

// Content PHP and HTML goes here.
include($errors['location'].'template/header.php'); ?>
This website is locked and is only accessable to <?php echo $page['security_users']; ?> users. Please either, log in below, or contact the site administrator to gain the necessary privalages.</p>
<form action='../login/login.php' method='POST' name='login' id='login'>
	<p class='system_normaltext' align='center'>Username: <input name='loginusername' type='text' id='loginusername' /></p>
	<p class='system_normaltext' align='center'>Password: <input name='loginpassword' type='password' id='loginpassword' /></p>
	<input name='page_go' type='hidden' id='page_go' value='$_SERVER['REQUEST_URI']' />
	<p class='system_normaltext' align='center'><input name='login' type='submit' id='login' value='Login' /></p>
</form>
<script language='JavaScript'>
	document.login.loginusername.focus();
</script>
<?php include($errors['location'].'template/footer.php');

// Calling the skin footer.
eval($page['skin_footer']); ?>
